package com.linglan.modules.demo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class DemoVO {
    @NotNull(message = "{validate.id.notnull}")
    private Long id;

    @NotBlank(message = "{validate.word.notnull}")
    private String word;

    private Integer isDeleted;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;
}
